/***************************** BEGIN LICENSE BLOCK ***************************

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at
 http://www.mozilla.org/MPL/MPL-1.1.html
 
 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the License.
 
 The Original Code is the "Space Time Toolkit".
 
 The Initial Developer of the Original Code is the VAST team at the
 University of Alabama in Huntsville (UAH). <http://vast.uah.edu>
 Portions created by the Initial Developer are Copyright (C) 2007
 the Initial Developer. All Rights Reserved.
 
 Please Contact Mike Botts <mike.botts@uah.edu> for more information.
 
 Contributor(s): 
    Alexandre Robin <robin@nsstc.uah.edu>
 
******************************* END LICENSE BLOCK ***************************/

package org.vast.stt.project.feedback;

import org.vast.ows.sld.Color;
import org.vast.ows.sld.Graphic;
import org.vast.ows.sld.ScalarParameter;
import org.vast.ows.sld.Symbolizer;


/**
 * <p><b>Title:</b>
 * Show Popup
 * </p>
 *
 * <p><b>Description:</b><br/>
 * Used to show a popup box with rendered data as a result
 * to a user action.
 * </p>
 *
 * <p>Copyright (c) 2007</p>
 * @author Alexandre Robin
 * @date Oct 19, 2006
 * @version 1.0
 */
public class ShowPopup extends ItemAction
{
    protected ScalarParameter title;
    protected Color backgroundColor;
    protected Graphic icon;
    protected boolean showCloseButton;
    protected float autoCloseDelay;
    protected boolean autoUpdate; // if true, popup content will be updated when data changes
    protected Symbolizer content; // DataTable, DataChart, Label, Raster and Video supported


    public float getAutoCloseDelay()
    {
        return autoCloseDelay;
    }


    public void setAutoCloseDelay(float autoCloseDelay)
    {
        this.autoCloseDelay = autoCloseDelay;
    }


    public boolean isAutoUpdate()
    {
        return autoUpdate;
    }


    public void setAutoUpdate(boolean autoUpdate)
    {
        this.autoUpdate = autoUpdate;
    }


    public Color getBackgroundColor()
    {
        return backgroundColor;
    }


    public void setBackgroundColor(Color backgroundColor)
    {
        this.backgroundColor = backgroundColor;
    }


    public Graphic getIcon()
    {
        return icon;
    }


    public void setIcon(Graphic icon)
    {
        this.icon = icon;
    }


    public boolean isShowCloseButton()
    {
        return showCloseButton;
    }


    public void setShowCloseButton(boolean showCloseButton)
    {
        this.showCloseButton = showCloseButton;
    }


    public Symbolizer getContent()
    {
        return content;
    }


    public void setContent(Symbolizer style)
    {
        this.content = style;
    }


    public ScalarParameter getTitle()
    {
        return title;
    }


    public void setTitle(ScalarParameter title)
    {
        this.title = title;
    }
}
